using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using MBMC.Paths;

namespace MBMC.Dialogs
{
    public partial class Game_Properties : Form
    {
        Paths.Paths p = new MBMC.Paths.Paths();
        string mbfolder;
        public Game_Properties(string MBFolder)
        {
            InitializeComponent();
            mbfolder = MBFolder;
        }

        private void button3_Click(object sender, EventArgs e)
        {
            contextMenuStrip1.Show();
        }

        private void button4_Click(object sender, EventArgs e)
        {

        }

        private void Game_Properties_Load(object sender, EventArgs e)
        {
            gamelogobox.ImageLocation = p.Vrat_Cestu(mbfolder, MBPaths.IMGTitleIMG);
            productionlogobox.ImageLocation = p.Vrat_Cestu(mbfolder, MBPaths.IMGProductionIMG);
            presentslogobox.ImageLocation = p.Vrat_Cestu(mbfolder, MBPaths.IMGPresentsIMG);
            backgroundlogobox.ImageLocation = p.Vrat_Cestu(mbfolder, MBPaths.IMGBackgroundIMG);
            pictureBox1.ImageLocation = p.Vrat_Cestu(mbfolder, MBPaths.FMCUIClientUI_GAMEGUI) + "/cur_3darrow.png";
        }

        private void showFullImageAdressToolStripMenuItem_Click(object sender, EventArgs e)
        {
            textBox1.Text = gamelogobox.ImageLocation.ToString();
        }

        private void toolStripMenuItem4_Click(object sender, EventArgs e)
        {
            textBox1.Text = presentslogobox.ImageLocation.ToString();
        }

        private void toolStripMenuItem7_Click(object sender, EventArgs e)
        {

        }

        private void toolStripMenuItem8_Click(object sender, EventArgs e)
        {
            textBox1.Text = productionlogobox.ImageLocation.ToString();
        }

        private void textBox1_Click(object sender, EventArgs e)
        {
            textBox1.SelectAll();
        }

        private void button11_Click(object sender, EventArgs e)
        {

        }

        private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void toolStripMenuItem16_Click(object sender, EventArgs e)
        {
            richTextBox1.Text = pictureBox1.ImageLocation.ToString();
        }

        private void toolStripMenuItem13_Click(object sender, EventArgs e)
        {
            process1.StartInfo.Arguments = pictureBox1.ImageLocation.ToString();
            process1.Start();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            FSImage fsi = new FSImage(gamelogobox.ImageLocation);
            fsi.ShowDialog();
        }

        private void button6_Click(object sender, EventArgs e)
        {
            FSImage fsi = new FSImage(presentslogobox.ImageLocation);
            fsi.ShowDialog();
        }

        private void button9_Click(object sender, EventArgs e)
        {
            FSImage fsi = new FSImage(productionlogobox.ImageLocation);
            fsi.ShowDialog();
        }

        private void button10_Click(object sender, EventArgs e)
        {
            FSImage fsi = new FSImage(backgroundlogobox.ImageLocation);
            fsi.ShowDialog();
        }
    }
}